package com.platform.framework.serviceimpl.wxpay;

import org.springframework.stereotype.Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.platform.framework.dao.wxpay.WxpayBusinessInfoMybatisDao;
import com.platform.framework.entity.wxpay.WxpayBusinessInfo;
import com.platform.framework.serviceinf.wxpay.WxpayBusinessInfoService;

@Service("wxpayBusinessInfoService")
public class WxpayBusinessInfoServiceImpl implements WxpayBusinessInfoService{

	@Autowired
	private WxpayBusinessInfoMybatisDao wxpayBusinessInfoMybatisDao;

	/*
	* 根据id查询商户信息和登录名
	*/
	@Override
	public WxpayBusinessInfo getBusinessInfoById(String id){
		return wxpayBusinessInfoMybatisDao.getBusinessInfoById(id);
	}
	/*
	* 查询商户信息和登录名列表
	*/
	@Override
	public List<WxpayBusinessInfo> queryWxpayBusinessList(){
		return wxpayBusinessInfoMybatisDao.queryWxpayBusinessList();
	}

	@Override
	public WxpayBusinessInfo getInfoByLoginName(String loginName){
		return (wxpayBusinessInfoMybatisDao.getInfoByLoginName(loginName)).get(0);
	}
	
}

